home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_ORBit.idb / usr / freeware / include / orb / options.h.z / options.h
Encoding:
C/C++ Source or Header  |  1999-07-16  |  1.3 KB  |  45 lines

  1. /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
  2.  
  3. /*
  4.  *  ORBit: A CORBA v2.2 ORB
  5.  *
  6.  *  Copyright (C) 1998 Richard H. Porter
  7.  *
  8.  *  This library is free software; you can redistribute it and/or
  9.  *  modify it under the terms of the GNU Library General Public
  10.  *  License as published by the Free Software Foundation; either
  11.  *  version 2 of the License, or (at your option) any later version.
  12.  *
  13.  *  This library is distributed in the hope that it will be useful,
  14.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  16.  *  Library General Public License for more details.
  17.  *
  18.  *  You should have received a copy of the GNU Library General Public
  19.  *  License along with this library; if not, write to the Free
  20.  *  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  *
  22.  *  Author: Dick Porter <dick@cymru.net>
  23.  *
  24.  */
  25.  
  26. #ifndef _ORBIT_OPTIONS_H_
  27. #define _ORBIT_OPTIONS_H_
  28.  
  29. typedef enum {
  30.     no_arg=0,
  31.     string_arg,
  32.     int_arg
  33. } ORBit_opt_type;
  34.  
  35. typedef struct {
  36.     char *name;
  37.     ORBit_opt_type type;
  38.     void *arg;
  39. } ORBit_orb_options;
  40.  
  41. extern void ORBit_option_set(ORBit_orb_options *found, const char *val);
  42. extern void ORBit_option_parse(int *argc, char **argv, ORBit_orb_options *options);
  43.  
  44. #endif /* !_ORBIT_OPTIONS_H_ */
  45.